package cn.codergege.demo.mock

/**
 * Created by codergege on 17-3-1.
 */
class Publisher {
    List<Subscriber> subscribers = []
    NewSubcriber newSubcriber = new NewSubcriber()
    void send(String message) {
        subscribers*.recieve(message)
        newSubcriber.recieve(message)
    }
}
